home *** CD-ROM | disk | FTP | other *** search
-
- void Dot( int color, int pixrow, int pixcol ) /* write a dot on the screen */
- {
- mov al,[bp+4] ; get color (byte)
- mov ah,0Ch ; write pixel
- mov dx,[bp+6] ; get row
- mov cx,[bp+8] ; get column
- int 10h ; call video rom bios
- }
-
-
- int GetMode( void )
- {
- mov ah,0Fh ; get mode function
- int 10h ; call video rom bios
- xor ah,ah ; clear top byte (low byte has mode)
- ret
- }
-
-
- void SetMode( int newmode )
- {
- mov al,[bp+4] ; get new mode
- xor ah,ah ; set mode function
- int 10h ; call video rom bios
- }
-